class UserInfoModel {
  String? phone;

  String token;

  UserInfoModel({
    required this.token,
    this.phone,
  });
  Map<String, dynamic> toMap() {
    return {
      'token': token,
      'phone': phone ?? '',
    };
  }

  factory UserInfoModel.fromMap(Map<dynamic, dynamic> map) {
    return UserInfoModel(
      token: map['token'] ?? '',
      phone: map['phone'] ?? '',
    );
  }
}
